﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using WebApplication1.Controllers;

namespace WebApplication1.Services
{
    public interface IMyService
    {
        void DoWork();
    }

    public class MyService : IMyService
    {
        public ILogger<MyService> Logger { get; set; }
     
        public void DoWork()
        {
            Logger.LogInformation("Work is being done.");
        }
    }
}
